package com.cesgroup.zw.spring.boot.library.echarts.gauge.simple;

import com.cesgroup.zw.spring.boot.echarts.component.series.Gauge;
import com.cesgroup.zw.spring.boot.echarts.model.style.TitleStyle;

/**
 * @author ytj
 * @date 2019/7/2 13:28
 */
public class SimpleGaugeSeries extends Gauge {
    public SimpleGaugeSeries(SimpleGaugeParam param){
        this.setName(param.getName());
        this.setDetail(new TitleStyle(){{
            this.setFormatter("{value}%");
        }});
        this.setData(param.getDataset());
    }
}
